<?php
html::printPath('public.home-header', 'public.home-desc');
$msg->printMessages();

$languageNames = constants::$languageNames;

$languages = Kohana::config('multi_lang.allowed_languages');
if (count($languages) > 1) {
	echo '<ul class="languageList">';
	foreach ($languages as $langCode => $longName) {
		$langName = $languageNames[$langCode];
		echo '<li>' . html::anchor(url::current_lang($langCode), $langName . html::img('flag/lang/' . $langCode . '.png', array('alt' => $langCode, 'title' => $langName))) . '</li>';
	}
	echo '</ul>';
}

echo '<div style="text-align: center; margin-top: 4em;">' .
		'<p>' . html::img('maintenence.png') . '</p>' .
		'<p>' . text::getEscaped('public-maintenence-message') . '</p>' .
		'<p class="description">' . text::getEscaped('public-maintenence-info') . '</p>' .
		'</div>';
?>

<script type="text/javascript">
    $(document).ready(function() {
        setTimeout(function() {
            document.location.reload();
        }, 10000);
    });
</script>
